







<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so search-form">
            <input class="layui-input"  autocomplete="off" placeholder="开始日" name="date1"  value="{:input('date1')}" id="start">
            <input class="layui-input"  autocomplete="off" placeholder="截止日" name="date2"  value="{:input('date2')}" id="end">
            <input type="text" name="search_data"  placeholder="用户名|店铺名|UID" autocomplete="off" value="{:input('search_data')}"  class="layui-input">
            <div class="layui-input-inline">
                <select name="wallet_id">
                    <option value="" >全部币种</option>
                    {volist name='wallet' id='vo'}
                    <option value="{$vo['id']}" {notempty name="param['wallet_id']"}{if condition="$param['wallet_id'] eq $vo['id']"} selected="selected" {/if}{/notempty} >{$vo['name']}</option>
                    {/volist}
                </select>
            </div>
            <button class="layui-btn"  id="search"  url="{:url('shop_list')}"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>

        </form>
    </div>
    <xblock>
        <!--<button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>-->
        <ob_link><a  href="{:url('shopAdd')}" style="color: white">   <button class="layui-btn" >新 增</button></a></ob_link>
        <ob_link><a  href="{:url('shop_list',['date_type'=>1])}" style="color: white">   <button class="layui-btn layui-btn-danger" >今 天</button></a></ob_link>
        <ob_link><a  href="{:url('shop_list',['date_type'=>2])}" style="color: white">   <button class="layui-btn layui-btn-danger" >昨 天</button></a></ob_link>
        <ob_link><a  href="{:url('shop_list',['date_type'=>3])}" style="color: white">   <button class="layui-btn layui-btn-danger" >近7天</button></a></ob_link>
        <ob_link><a  href="{:url('shop_list',['date_type'=>4])}" style="color: white">   <button class="layui-btn layui-btn-danger" >近30天</button></a></ob_link>
        <span class="x-right" style="line-height:40px;margin-right:10px;">共有数据：{$list.count} 条</span>
        <span class="x-right" style="line-height:40px; margin-right:10px;">总锁定余额：{$list.ect}</span>
        <span class="x-right" style="line-height:40px; margin-right:10px;">总余额：{$list.btc}</span>
    </xblock>
    <hr/>
    <div class="layui-table x-admin">
        <span>ETH总排队中:</span>
        {volist name="list.eths" id="v" key='k'}
        |
        <span>
                {$v.name}金额：{$v.count} 单
            </span>
        {/volist}

    </div>
    <hr/>
    <div class="layui-table x-admin">
        <span>BTC总排队中:</span>
        {volist name="list.btcs" id="v" key='k'}
        |
        <span>
                {$v.name}金额：{$v.count} 单
            </span>
        {/volist}

    </div>
    <hr/>
    <div class="layui-table x-admin">
        <span>USDT总排队中:</span>
        {volist name="list.usdts" id="v" key='k'}
        |
        <span>
                {$v.name}金额：{$v.count} 单
            </span>
        {/volist}

    </div>
    <hr/>
    <table class="layui-table x-admin">
        <thead>
        <tr>
            <th>
                序号
            </th>
            <th>会员基础信息</th>
            <th>店铺信息</th>
            <th>店铺余额</th>
            <th>店铺经营统计</th>
            <th>其他信息</th>
            <th>操作</th>
        </thead>
        {notempty name='list.list'}
        <tbody>
        {volist name='list.list' id='vo' key="k"}
        <tr>
            <td >
                {$k}
            </td>
            <td >
                <div><label>用户名:</label><span>{$vo.username}{if condition ="$vo.is_company eq 1"}<span style="color: #f56c6c">(公司账户)</span>{/if}</span></div>
                <div>  <label>手机:</label><span>{$vo.mobile|default='未绑定'}</span></div>
                <div> <label>推荐人:</label><span>{$vo.member.leader_nickname}</span></div>
                <div> <label>注册时间:</label><span>{$vo.reg_time|date='Y-m-d H:i:s',###}</span></div>
                <div> <label>是否赌王:</label><span>   {eq name="vo.is_king" value="0"}
                否
                {else/}
                是
                {/eq}</span></div>
            </td>

            <td >
                <div><label>店铺名:</label><span>{$vo.shop_name}</span></div>
                <div>  <label>收款方式:</label><span>{$vo.pay_array}</span></div>
                <div> <label>币种:</label><span>{$vo.wallet.name}</span></div>
                <div> <label>店铺限制发布时间:</label><span>{notempty name='vo.penalty_time'} {$vo.penalty_time|date='Y-m-d H:i:s',###}{else/}{/notempty}</span></div>
                <div> <label>店铺禁止匹配时间:</label><span>{notempty name='vo.no_match_time'} {$vo.no_match_time|date='Y-m-d H:i:s',###}{else/}{/notempty}</span></div>
            </td>
            <td >
                <div><label>店铺取总可用结额:</label><span>{$vo.number_total}</span></div>
                <div><label>店铺余额:</label><span>{$vo.number_do}</span></div>
                <div><label>撤回冻结余额:</label><span>{$vo.cancel_number}</span></div>
                <div>  <label>代收订单排队中金额:</label><span>{$vo.sell_money}</span></div>
                <div> <label>代发订单排队中金额:</label><span>{$vo.buy_money}</span></div>
            </td>
            <td >
                <div><label>完成订单数:</label><span>{$vo.success_count}</span></div>
                <div>  <label>订单投诉数:</label><span>{$vo.complaint_count}</span></div>
                <div> <label>交易总额:</label><span>{$vo.turnover}</span></div>
                <div><label>代收手续费收益:</label><span>{$vo.sell_poundage}</span></div>
                <div>  <label>代发手续费收益:</label><span>{$vo.buy_poundage}</span></div>
            </td>

            <td >
                <div><label>店铺申请时间:</label><span>{$vo.create_time}</span></div>
                <div>  <label>通过时间:</label><span>{$vo.adopt_time}</span></div>
                <div> <label>匹配权限:</label><span>{eq name="vo.is_auth" value="0"}
                正常
                {else/}
                优先
                {/eq}</span></div>
                <div> <label>店铺排序:</label><span><input type="text" class="sort-th sort-text" href="{:url('setSort')}" id="{$vo.id}" value="{$vo.sort}" /></span></div>
            </td>
            <td class="td-manage">

            <div style="margin-bottom: 5px;"><label>状态:</label><span>
                 <div style="margin-bottom: 5px;"><label>是否封闭:</label><span>  {if condition="$vo['status'] eq 1"}
                <ob_link><a class="ajax-get layui-btn layui-btn-normal layui-btn-mini" href="{:url('update_info', array('id' => $vo['id'], 'status' =>0))}">  正常</a></ob_link>

                {else/}
                <ob_link><a class="ajax-get layui-btn layui-btn-normal layui-btn-mini layui-btn-disabled" href="{:url('update_info', array('id' => $vo['id'], 'status' => 1))}">  已封闭</a></ob_link>

                {/if}</span></div>


                <div style="margin-bottom: 5px;"><label>转入余额:</label><span><a class="ajax-get" href="javascript:;">
                {if condition="$vo['is_transfer_to'] eq 1"}
                <ob_link><a class="ajax-get layui-btn layui-btn-normal layui-btn-mini" href="{:url('update_info', array('id' => $vo['id'], 'is_transfer_to' =>0))}">  正常</a></ob_link>

                {else/}
                <ob_link><a class="ajax-get layui-btn layui-btn-normal layui-btn-mini layui-btn-disabled" href="{:url('update_info', array('id' => $vo['id'], 'is_transfer_to' => 1))}">  禁止</a></ob_link>

                {/if}
            </a></span></div>
                <div style="margin-bottom: 5px;">  <label>转出余额:</label><span><a class="ajax-get" href="javascript:;">
                {if condition="$vo['is_transfer_out'] eq 1"}
                <ob_link><a class="ajax-get layui-btn layui-btn-normal layui-btn-mini" href="{:url('update_info', array('id' => $vo['id'], 'is_transfer_out' =>0))}">  正常</a></ob_link>

                {else/}
                <ob_link><a class="ajax-get layui-btn layui-btn-normal layui-btn-mini layui-btn-disabled" href="{:url('update_info', array('id' => $vo['id'], 'is_transfer_out' => 1))}">  禁止</a></ob_link>

                {/if}
                    </a></span></div>
                <div style="margin-bottom: 5px;"> <label>匹配订单:</label><span><a class="ajax-get" href="javascript:;">
                {if condition="$vo['is_match'] eq 1"}
                <ob_link><a class="ajax-get layui-btn layui-btn-normal layui-btn-mini" href="{:url('update_info', array('id' => $vo['id'], 'is_match' =>0))}">  正常</a></ob_link>

                {else/}
                <ob_link><a class="ajax-get layui-btn layui-btn-normal layui-btn-mini layui-btn-disabled" href="{:url('update_info', array('id' => $vo['id'], 'is_match' => 1))}">  禁止</a></ob_link>

                {/if}
                    </a></span></div>
                <div style="margin-bottom: 5px;"> <label>发布订单:</label><span><a class="ajax-get" href="javascript:;">
                {if condition="$vo['is_release'] eq 1"}
                <ob_link><a class="ajax-get layui-btn layui-btn-normal layui-btn-mini" href="{:url('update_info', array('id' => $vo['id'], 'is_release' =>0))}">  正常</a></ob_link>

                {else/}
                <ob_link><a class="ajax-get layui-btn layui-btn-normal layui-btn-mini layui-btn-disabled" href="{:url('update_info', array('id' => $vo['id'], 'is_release' => 1))}">禁止</a></ob_link>

                {/if}
                    </a></span></div>
                <div style="margin-bottom: 5px;"><label>编辑:</label><span>  <ob_link><a title="编辑"  href="{:url('shopEdit', array('id' => $vo['id']))}" >
                    <i class="layui-icon">&#xe642;</i>
                </a></ob_link></span></div>
                <!--<div style="margin-bottom: 5px;">  <label>删 除:</label><span>  <ob_link><a title="删 除" class="ajax-get"  href="{:url('setStatus', array('ids' => $vo['id'], 'status' => -1))}" >-->
                    <!--<i class="layui-icon">&#xe640;</i>-->
                <!--</a></ob_link></span></div>-->



            </td>
        </tr>
        {/volist}
        {else/}
        <tbody><tr class="odd"><td colspan="12"  valign="top">{:config('empty_list_describe')}</td></tr></tbody>
        {/notempty}

        </tbody>
    </table>
    <div class="page">
        {notempty name='list.list'}   {$list.list->render()}{/notempty}
    </div>

</div>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;
        layer=layui.layer;
        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });








    //导出功能
    $(".export").click(function(){

        window.location.href = searchFormUrl($(".export"));
    });
</script>

</body>

</html>




